
// manualCalibDoc.h : interface of the CmanualCalibDoc class
//


#pragma once
#include "calibdata.h"
#include "cvxCapture.h"


class CmanualCalibDoc : public CDocument
{
protected: // create from serialization only
	CmanualCalibDoc();
	DECLARE_DYNCREATE(CmanualCalibDoc)

// Attributes
public:

// Operations
public:

// Overrides
public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);

// Implementation
public:
	virtual ~CmanualCalibDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	DECLARE_MESSAGE_MAP()
	// calibration data
	vector<CCalibData *> m_CalibDataVec;



public:
	IplImage *getAImage(int index);
	void AddCalibData(CCalibData *data){m_CalibDataVec.push_back(data);}

	//convert video start end time code
	bool ConvertVideo(const string &leftVideoFile, const string &rightVideoFile, SIZE &leftSize, SIZE &rightSize);

public:
	//afx_msg void OnLoadImages();
//	afx_msg void OnLoadAddtionalimages();
//	afx_msg void OnLoadExtractgridcorners();
};


